package service;

import pojo.Book;
import pojo.vo.BookVo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-12-05
 * Time: 14:51
 */
public interface BookService {
    /**
     * 查询所有书籍的方法
     * @return
     */
    public List<BookVo> listBook();

    /**
     * 添加书籍
     */
    public boolean addBook(String bookName, String author, String press, Long allNumber, String storagePlace);

    /**
     * 删除书籍
     */
    public boolean deleteBook1(Long bookIde);

    public boolean deleteBook2(String name);

    /**
     * 根据书名模糊查询书籍
     */
    public List<BookVo> listBookByBookName(String name);

    /**
     * 根据书名精确查询书籍
     */
    public Book getBookByName(String name);
    /**
     * 根据id精确查询书籍
     */
    public List<BookVo> listBookByBookId(Long id);

    /**
     * 修改书籍
     */
    public boolean modifyBook(Book newbook, Long rawBookId);

}
